﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Remoting.Messaging;

using MessageCallAspect.Inspector.MessageSink;

namespace MessageCallAspect.Aspect.Log
{
    public class LogMessageSinkCreator : IMessageSinkCreator
    {
        #region ctor

        public LogMessageSinkCreator()
        {

        }

        #endregion

        #region IMessageSinkCreator Members

        public int Order { get; set; }

        public IMessageSink CreateMessageSink(IModuleContext context, object target, IMessageSink nextSink)
        {
            return new LogMessageSink(context, target, nextSink);
        }

        #endregion

        #region IDisposable Members

        public void Dispose()
        {
        }

        #endregion
    }
}
